{* Smarty *}
<div id="main_header">{t}{$command}{/t}: {t}{$option}{/t}</div>    
<div class="box">
	<table cellspacing="0">
		<caption>{t}caption backup{/t}</caption>
		<tr>
			<th>{t}backup{/t}</th>
		</tr>
		<tr>   
			{if isset($backup)}       
			<td class="noborder">{t}download backup{/t}:<a class="success" href="/admin/config/backup/download/{$backup}">{$backup}</a></td>
			{else}
		 	<td class="noborder"><input type="button" value="{t}make backup{/t}" onclick="location.href='/admin/config/backup/generate'"></td>    
			{/if}
		</tr>
	</table>	
</div>  

{if isset($backups) && $backups == "empty"}
{else}
<div class="box">
	<table cellspacing="0">
		<caption>{t}caption backup files{/t}</caption>
		<tr>
			<th colspan="3">{t}backup list{/t}</th>
		</tr>    
	  <tr>
			<th>{t}backup files{/t}</th>
			<th>{t}backup fileatime{/t}</th>
			<th>{t}backup download{/t}</th>
		</tr>  
		{if isset($backups_deleted)} 
		<tr>
			<td colspan="3" class="success">{t}backups deleted{/t}</td> 
		</tr>
		{else}
		{foreach item=backup from=$backups}
		<tr>
			<td>{$backup.0}</td>
			<td>{$backup.1}</td>
			<td>{html_image file="/themes/$template/images/download.gif" border="0" href="/admin/config/backup/download/`$backup.0`"}</td>
		</tr>
	 	{/foreach}   
		<tr>
			<td colspan="3"><input type="button" value="{t}delete backups{/t}" onclick="location.href='/admin/config/backup/delete'"></td> 
		</tr>
		{/if}
	</table>	
</div>
{/if}